<div class="offices view">
<h2><?php echo __('Office'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($office['Office']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Type'); ?></dt>
		<dd>
			<?php echo h($office['Office']['type']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Parent Office Id'); ?></dt>
		<dd>
			<?php echo h($office['Office']['parent_office_id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($office['Office']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Description'); ?></dt>
		<dd>
			<?php echo h($office['Office']['description']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Tax'); ?></dt>
		<dd>
			<?php echo h($office['Office']['tax']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Open Hour'); ?></dt>
		<dd>
			<?php echo h($office['Office']['open_hour']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Close Hour'); ?></dt>
		<dd>
			<?php echo h($office['Office']['close_hour']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Open Dt'); ?></dt>
		<dd>
			<?php echo h($office['Office']['open_dt']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Close Dt'); ?></dt>
		<dd>
			<?php echo h($office['Office']['close_dt']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($office['Office']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($office['Office']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Updated'); ?></dt>
		<dd>
			<?php echo h($office['Office']['updated']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Enable Ad'); ?></dt>
		<dd>
			<?php echo h($office['Office']['enable_ad']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Ad Header Price'); ?></dt>
		<dd>
			<?php echo h($office['Office']['ad_header_price']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Ad Footer Price'); ?></dt>
		<dd>
			<?php echo h($office['Office']['ad_footer_price']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Enable Rsv Edit'); ?></dt>
		<dd>
			<?php echo h($office['Office']['enable_rsv_edit']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Rsv Edit Times'); ?></dt>
		<dd>
			<?php echo h($office['Office']['rsv_edit_times']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Enable Rsv Duplicate'); ?></dt>
		<dd>
			<?php echo h($office['Office']['enable_rsv_duplicate']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Rsv Duplicate Count'); ?></dt>
		<dd>
			<?php echo h($office['Office']['rsv_duplicate_count']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Rsv All Count'); ?></dt>
		<dd>
			<?php echo h($office['Office']['rsv_all_count']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Office'), array('action' => 'edit', $office['Office']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Office'), array('action' => 'delete', $office['Office']['id']), null, __('Are you sure you want to delete # %s?', $office['Office']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Offices'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Office'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Advertises'), array('controller' => 'advertises', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Advertise'), array('controller' => 'advertises', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Constants'), array('controller' => 'constants', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Constant'), array('controller' => 'constants', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Coupons'), array('controller' => 'coupons', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Coupon'), array('controller' => 'coupons', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Freeadrs Areas'), array('controller' => 'freeadrs_areas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Freeadrs Area'), array('controller' => 'freeadrs_areas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Freeadrs Crowdeds'), array('controller' => 'freeadrs_crowdeds', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Freeadrs Crowded'), array('controller' => 'freeadrs_crowdeds', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Rentals'), array('controller' => 'rentals', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Rental'), array('controller' => 'rentals', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Advertises'); ?></h3>
	<?php if (!empty($office['Advertise'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Office Id'); ?></th>
		<th><?php echo __('Client Type'); ?></th>
		<th><?php echo __('Member Id'); ?></th>
		<th><?php echo __('Title'); ?></th>
		<th><?php echo __('Type'); ?></th>
		<th><?php echo __('Price'); ?></th>
		<th><?php echo __('Content'); ?></th>
		<th><?php echo __('Note'); ?></th>
		<th><?php echo __('Open Dt'); ?></th>
		<th><?php echo __('Close Dt'); ?></th>
		<th><?php echo __('Status'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Updated'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($office['Advertise'] as $advertise): ?>
		<tr>
			<td><?php echo $advertise['id']; ?></td>
			<td><?php echo $advertise['office_id']; ?></td>
			<td><?php echo $advertise['client_type']; ?></td>
			<td><?php echo $advertise['member_id']; ?></td>
			<td><?php echo $advertise['title']; ?></td>
			<td><?php echo $advertise['type']; ?></td>
			<td><?php echo $advertise['price']; ?></td>
			<td><?php echo $advertise['content']; ?></td>
			<td><?php echo $advertise['note']; ?></td>
			<td><?php echo $advertise['open_dt']; ?></td>
			<td><?php echo $advertise['close_dt']; ?></td>
			<td><?php echo $advertise['status']; ?></td>
			<td><?php echo $advertise['created']; ?></td>
			<td><?php echo $advertise['updated']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'advertises', 'action' => 'view', $advertise['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'advertises', 'action' => 'edit', $advertise['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'advertises', 'action' => 'delete', $advertise['id']), null, __('Are you sure you want to delete # %s?', $advertise['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Advertise'), array('controller' => 'advertises', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Constants'); ?></h3>
	<?php if (!empty($office['Constant'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Office Id'); ?></th>
		<th><?php echo __('Namespace'); ?></th>
		<th><?php echo __('Key'); ?></th>
		<th><?php echo __('Value'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Updated'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($office['Constant'] as $constant): ?>
		<tr>
			<td><?php echo $constant['id']; ?></td>
			<td><?php echo $constant['office_id']; ?></td>
			<td><?php echo $constant['namespace']; ?></td>
			<td><?php echo $constant['key']; ?></td>
			<td><?php echo $constant['value']; ?></td>
			<td><?php echo $constant['created']; ?></td>
			<td><?php echo $constant['updated']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'constants', 'action' => 'view', $constant['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'constants', 'action' => 'edit', $constant['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'constants', 'action' => 'delete', $constant['id']), null, __('Are you sure you want to delete # %s?', $constant['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Constant'), array('controller' => 'constants', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Coupons'); ?></h3>
	<?php if (!empty($office['Coupon'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Office Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Code'); ?></th>
		<th><?php echo __('Discount Price'); ?></th>
		<th><?php echo __('Open Dt'); ?></th>
		<th><?php echo __('Close Dt'); ?></th>
		<th><?php echo __('Note'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Updated'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($office['Coupon'] as $coupon): ?>
		<tr>
			<td><?php echo $coupon['id']; ?></td>
			<td><?php echo $coupon['office_id']; ?></td>
			<td><?php echo $coupon['name']; ?></td>
			<td><?php echo $coupon['code']; ?></td>
			<td><?php echo $coupon['discount_price']; ?></td>
			<td><?php echo $coupon['open_dt']; ?></td>
			<td><?php echo $coupon['close_dt']; ?></td>
			<td><?php echo $coupon['note']; ?></td>
			<td><?php echo $coupon['created']; ?></td>
			<td><?php echo $coupon['updated']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'coupons', 'action' => 'view', $coupon['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'coupons', 'action' => 'edit', $coupon['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'coupons', 'action' => 'delete', $coupon['id']), null, __('Are you sure you want to delete # %s?', $coupon['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Coupon'), array('controller' => 'coupons', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Freeadrs Areas'); ?></h3>
	<?php if (!empty($office['FreeadrsArea'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Office Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Updated'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($office['FreeadrsArea'] as $freeadrsArea): ?>
		<tr>
			<td><?php echo $freeadrsArea['id']; ?></td>
			<td><?php echo $freeadrsArea['office_id']; ?></td>
			<td><?php echo $freeadrsArea['name']; ?></td>
			<td><?php echo $freeadrsArea['created']; ?></td>
			<td><?php echo $freeadrsArea['updated']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'freeadrs_areas', 'action' => 'view', $freeadrsArea['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'freeadrs_areas', 'action' => 'edit', $freeadrsArea['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'freeadrs_areas', 'action' => 'delete', $freeadrsArea['id']), null, __('Are you sure you want to delete # %s?', $freeadrsArea['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Freeadrs Area'), array('controller' => 'freeadrs_areas', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Freeadrs Crowdeds'); ?></h3>
	<?php if (!empty($office['FreeadrsCrowded'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Office Id'); ?></th>
		<th><?php echo __('Crowded'); ?></th>
		<th><?php echo __('Announce'); ?></th>
		<th><?php echo __('Weather'); ?></th>
		<th><?php echo __('Temp Outside'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Updated'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($office['FreeadrsCrowded'] as $freeadrsCrowded): ?>
		<tr>
			<td><?php echo $freeadrsCrowded['office_id']; ?></td>
			<td><?php echo $freeadrsCrowded['crowded']; ?></td>
			<td><?php echo $freeadrsCrowded['announce']; ?></td>
			<td><?php echo $freeadrsCrowded['weather']; ?></td>
			<td><?php echo $freeadrsCrowded['temp_outside']; ?></td>
			<td><?php echo $freeadrsCrowded['created']; ?></td>
			<td><?php echo $freeadrsCrowded['updated']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'freeadrs_crowdeds', 'action' => 'view', $freeadrsCrowded['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'freeadrs_crowdeds', 'action' => 'edit', $freeadrsCrowded['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'freeadrs_crowdeds', 'action' => 'delete', $freeadrsCrowded['id']), null, __('Are you sure you want to delete # %s?', $freeadrsCrowded['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Freeadrs Crowded'), array('controller' => 'freeadrs_crowdeds', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Rentals'); ?></h3>
	<?php if (!empty($office['Rental'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Office Id'); ?></th>
		<th><?php echo __('Member Id'); ?></th>
		<th><?php echo __('Rental Dt'); ?></th>
		<th><?php echo __('Return Due Dt'); ?></th>
		<th><?php echo __('Return Dt'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Serial Number'); ?></th>
		<th><?php echo __('Note'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Updated'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($office['Rental'] as $rental): ?>
		<tr>
			<td><?php echo $rental['id']; ?></td>
			<td><?php echo $rental['office_id']; ?></td>
			<td><?php echo $rental['member_id']; ?></td>
			<td><?php echo $rental['rental_dt']; ?></td>
			<td><?php echo $rental['return_due_dt']; ?></td>
			<td><?php echo $rental['return_dt']; ?></td>
			<td><?php echo $rental['name']; ?></td>
			<td><?php echo $rental['serial_number']; ?></td>
			<td><?php echo $rental['note']; ?></td>
			<td><?php echo $rental['created']; ?></td>
			<td><?php echo $rental['updated']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'rentals', 'action' => 'view', $rental['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'rentals', 'action' => 'edit', $rental['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'rentals', 'action' => 'delete', $rental['id']), null, __('Are you sure you want to delete # %s?', $rental['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Rental'), array('controller' => 'rentals', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
